<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


class Family extends Model
{
    protected  $table='family';


    protected $casts = [
        'photo' => 'array',
    ];


    public function user() {
        return $this->belongsTo('App\User', 'user_id', 'id');
    }

    public function volunteer() {
        return $this->belongsTo('App\Models\Volunteer', 'user_id', 'user_id');
    }


}
